package com.fairy.moonfairy.controller;

import com.fairy.moonfairy.entity.SysNav;
import com.fairy.moonfairy.service.SysNavService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 导航页(SysNav)表控制层
 *
 * @author makejava
 * @since 2021-05-24 16:53:54
 */
@RestController
@RequestMapping("sysNav")
public class SysNavController {
    /**
     * 服务对象
     */
    @Resource
    private SysNavService sysNavService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public SysNav selectOne(Integer id) {
        return this.sysNavService.queryById(id);
    }

}
